
public class Sudoku {

	private Cell[][] board;
	private int size;
	
	public Sudoku(int size){
		this.size = size;
		Cell[] row = new Cell[size];
		for(int i = 0; i < size; i++) {
			board[i] = new Cell[size];
		}
		for( int i = 0; i < size; i++)
			for( int j = 0; j < size; j++)
				board[i][j] = new Cell();
	}
	
	public static void main(String[] args) {
		int size = 9;
		Sudoku s = new Sudoku(size);
		
	}
	
	public void placeValue(int row, int col, int value){
		Cell c = board[row][col];
		c.value = value;
		c.possibleValues.clear();
		//Update the board
		for( int i = 0; i < size && i != row; i++) {
			board[i][col].removePossibleValue(value);
		}
		for( int j = 0; j < size && j != col; j++) {
			board[row][j].removePossibleValue(value);
		}
		//remove possiblevalues from cluster.
	}
	
	public boolean hasNakedPairsInCluster(){
		/*foreverypairofcells in a cluster{
			setdiff(c1.possibleValues, c2.possibleValues).length == 2
		}*/
		return true;
	}
	
	

}
